UNPKG

1.18 kBMarkdownView Raw
1# We use `hot-shots` as our DogStatsD client
2
3## Date
4
5May 18, 2018
6
7## Contributors
8
9* tzvipm
10
11## Summary
12
13We use `hot-shots` as our DogStatsD client. It is regularly updated based on `etsy/statsd`, and has a rigorous test suite including performance tests. These characteristics make it stand out compared to alternative solutions.
14
15## Problem space
16
17We need to submit metrics to DataDog.
18
19## Solution
20
21We submit metrics to datadog via dogstatsd, based on the [DataDog Developer Documentation](https://docs.datadoghq.com/developers/dogstatsd/):
22
23> The easiest way to get your custom application metrics into Datadog is to send them to DogStatsD, a metrics aggregation service bundled with the Datadog Agent.
24
25This same documentation provides a [list of libraries in various programming languages](https://docs.datadoghq.com/developers/libraries/).
26
27Among those, there are 2 libraries listed under `Node.js` with support for `DogStatsD`:
28
29* `hot-shots`
30* `node-dogstatsd`
31
32`hot-shots` appears to be the clear choice between these 2 for the following reasons:
33
341. security - It is actively maintained
352. reliability - It has a test suite
363. performance - It has performance tests